﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctr_dangnhap.ascx.cs" Inherits="guest_usercontrols_ctr_dangnhap" %>
<div>
<form id="frm_Login" method="post" action="../../Navi.aspx?rqt=1">
<table>
	<tr>
		<td>username</td>
		<td><asp:TextBox ID="txt_Username" runat="server"></asp:TextBox></td>		
		<td rowspan="2">
            <asp:HyperLink ID="HyperLink_Dangnhap" runat="server" 
                onclick="submit_loginfrm()">Đăng nhập
             </asp:HyperLink>
         </td>
	</tr>
	<tr>
	    <td>password</td>
		<td><asp:TextBox ID="TextBox2" runat="server"></asp:TextBox></td>
	</tr>
	<tr>
	    <td><asp:HyperLink ID="HyperLink_Dangky" runat="server" 
                NavigateUrl="~/Navi.aspx?rqt=2">Đăng ký</asp:HyperLink></td>
	    <td><asp:HyperLink ID="HyperLink_Resetmatkhau" runat="server" 
                NavigateUrl="~/Navi.aspx?rqt=3">Quên mật khẩu</asp:HyperLink></td>
	</tr>
</table>
</form>
</div>
<%--NavigateUrl="~/Navi.aspx?rqt=1" --%>
<script type="text/javascript">
function submit_loginfrm() {
    alert('login');
    alert($('ctl00_ctr_dangnhap1_txt_Username').val());
    $('#frm_Login').submit();
}
</script>